﻿using SportsPlatform.Base;
using SportsPlatform.Dto.SportBusiness.Information;
using SportsPlatform.Dto.WeChat;
using SportsPlatform.Query.WeChat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.WeChat.IWeChat
{
    /// <summary>
    /// 移动端资讯服务接口
    /// </summary>
    public interface INewsService
    {
        /// <summary>
        /// 通过分类标识获取资讯列表
        /// </summary>
        /// <param name="query">传入参数</param>
        /// <returns></returns>
        Task<ResultListDto<GetByCategoryIdToNewsDto>> GetByCategoryIdToNews(WeChatGetCategoryQuery query);

        /// <summary>
        /// 通过标识获取对象
        /// </summary>
        /// <param name="Id">资讯标识</param>
        /// <returns></returns>
        Task<ResultDto<GetInformationByIdDto>> GetInformationById(GetInformationByIdQuery query);

        /// <summary>
        /// 获取所有资讯
        /// </summary>
        /// <returns></returns>
        Task<PagePagingDto<GetByCategoryIdToNewsDto>> GetInformationList(BasePageQuery query);
    }
}
